import java.util.LinkedList;
import java.util.Queue;

public class Main {
    public static void main(String[] args) {
        MyDueue myDueue = new MyDueue();
        myDueue.push(1);
        myDueue.push(2);
        System.out.println(myDueue.peek());
        System.out.println(myDueue.empty());
    }


    public static void main2(String[] args) {
       MyQueue myQueue = new MyQueue();
       myQueue.offer(1);
       myQueue.offer(2);
       myQueue.offer(3);

        System.out.println(myQueue.poll());

        System.out.println(myQueue.peek());

        System.out.println(myQueue.size());
    }
    public static void main1(String[] args) {
        Queue queue = new LinkedList();

        queue.offer(1);
        queue.offer(2);
        queue.offer(3);

        System.out.println(queue.peek());

        System.out.println(queue.poll());

        System.out.println(queue.size());
    }
}